<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>form标签 | 前端学习笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="cdd">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/html/register.html" />
    
    
    <link rel="prev" href="../../md/html/weibo-component.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.20"
        data-chapter-title="form标签"
        data-filepath="md/html/form.md"
        data-basepath="../.."
        data-revision="Fri Jan 05 2018 09:31:29 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/html/html.html">
            
                
                    <a href="../../md/html/html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/html/first.html">
            
                
                    <a href="../../md/html/first.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        入门
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/html/abiaoqian.html">
            
                
                    <a href="../../md/html/abiaoqian.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/html/amaodian.html">
            
                
                    <a href="../../md/html/amaodian.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        a标签锚点
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="md/html/img.html">
            
                
                    <a href="../../md/html/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        img标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="md/html/table.html">
            
                
                    <a href="../../md/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        table表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="md/html/area.html">
            
                
                    <a href="../../md/html/area.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        area标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="md/html/audio.html">
            
                
                    <a href="../../md/html/audio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        audio标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="md/html/picture.html">
            
                
                    <a href="../../md/html/picture.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        picture标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="md/html/video.html">
            
                
                    <a href="../../md/html/video.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        video标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="md/html/base.html">
            
                
                    <a href="../../md/html/base.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        base标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="md/html/character-entities.html">
            
                
                    <a href="../../md/html/character-entities.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.11.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="md/html/dl.html">
            
                
                    <a href="../../md/html/dl.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.12.</b>
                        
                        dl标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="md/html/gitbook.html">
            
                
                    <a href="../../md/html/gitbook.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.13.</b>
                        
                        gitbook
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="md/html/icon.html">
            
                
                    <a href="../../md/html/icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.14.</b>
                        
                        icon标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="md/html/iframe.html">
            
                
                    <a href="../../md/html/iframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.15.</b>
                        
                        iframe标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="md/html/nodejs.html">
            
                
                    <a href="../../md/html/nodejs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.16.</b>
                        
                        nodejs
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="md/html/ol.html">
            
                
                    <a href="../../md/html/ol.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.17.</b>
                        
                        ol标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="md/html/ul.html">
            
                
                    <a href="../../md/html/ul.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.18.</b>
                        
                        ul标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="md/html/weibo-component.html">
            
                
                    <a href="../../md/html/weibo-component.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.19.</b>
                        
                        weibo组件
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.20" data-path="md/html/form.html">
            
                
                    <a href="../../md/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.20.</b>
                        
                        form标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="md/html/register.html">
            
                
                    <a href="../../md/html/register.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.21.</b>
                        
                        register
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/css/css.html">
            
                
                    <a href="../../md/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/css/cssimport.html">
            
                
                    <a href="../../md/css/cssimport.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS的引入方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/css/elementselector.html">
            
                
                    <a href="../../md/css/elementselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        element元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/css/class&amp;idselector.html">
            
                
                    <a href="../../md/css/class&amp;idselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        class&amp;id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="md/css/relationselector.html">
            
                
                    <a href="../../md/css/relationselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        relation关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="md/css/attributeselectors.html">
            
                
                    <a href="../../md/css/attributeselectors.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="md/css/Pseudo-classselector.html">
            
                
                    <a href="../../md/css/Pseudo-classselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="md/css/pseudo-elementselector.html">
            
                
                    <a href="../../md/css/pseudo-elementselector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="md/css/font.html">
            
                
                    <a href="../../md/css/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        font字体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="md/css/color.html">
            
                
                    <a href="../../md/css/color.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        color颜色
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="md/css/text-decoration.html">
            
                
                    <a href="../../md/css/text-decoration.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        text-decoration文本装饰
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="md/css/text-shadow.html">
            
                
                    <a href="../../md/css/text-shadow.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.11.</b>
                        
                        text-shadow文本阴影
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="md/css/margin-box.html">
            
                
                    <a href="../../md/css/margin-box.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.12.</b>
                        
                        边距盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="md/css/block-inline-level.html">
            
                
                    <a href="../../md/css/block-inline-level.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.13.</b>
                        
                        块级元素、行内元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="md/css/inline-block-align.html">
            
                
                    <a href="../../md/css/inline-block-align.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.14.</b>
                        
                        行内块元素的垂直对齐
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.15" data-path="md/css/vertical-align.html">
            
                
                    <a href="../../md/css/vertical-align.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.15.</b>
                        
                        vertical-align元素垂直对齐方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.16" data-path="md/css/margin-border.html">
            
                
                    <a href="../../md/css/margin-border.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.16.</b>
                        
                        margin相邻的奇异现象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.17" data-path="md/css/Document-flow.html">
            
                
                    <a href="../../md/css/Document-flow.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.17.</b>
                        
                        Document flow文档流
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.18" data-path="md/css/float.html">
            
                
                    <a href="../../md/css/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.18.</b>
                        
                        float浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.19" data-path="md/css/floatexercise.html">
            
                
                    <a href="../../md/css/floatexercise.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.19.</b>
                        
                        float浮动练习
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.20" data-path="md/css/images.html">
            
                
                    <a href="../../md/css/images.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.20.</b>
                        
                        图片处理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.21" data-path="md/css/word.html">
            
                
                    <a href="../../md/css/word.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.21.</b>
                        
                        文字处理
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/work-box/study.html">
            
                
                    <a href="../../md/work-box/study.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        工具安装使用
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="md/work-box/git.html">
            
                
                    <a href="../../md/work-box/git.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        git
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/plastic-JavaScript/JavaScript-chedan.html">
            
            <span><b>4.</b> JavaScript</span>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >前端学习笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h3 id="form&#x6807;&#x7B7E;">form&#x6807;&#x7B7E;</h3>
<h4 id="form----&#x8868;&#x5355;&#x6807;&#x7B7E;&#xFF0C;&#x53EF;&#x4EE5;&#x7406;&#x89E3;&#x4E3A;&#x4E00;&#x5F20;&#x6587;&#x4EF6;&#x7EB8;&#xFF0C;&#x4E0A;&#x95E8;&#x53EF;&#x4EE5;&#x8F93;&#x51FA;&#x4EFB;&#x610F;&#x95EE;&#x9898;&#x548C;&#x7B54;&#x6848;">form    &#x8868;&#x5355;&#x6807;&#x7B7E;&#xFF0C;&#x53EF;&#x4EE5;&#x7406;&#x89E3;&#x4E3A;&#x4E00;&#x5F20;&#x6587;&#x4EF6;&#x7EB8;&#xFF0C;&#x4E0A;&#x95E8;&#x53EF;&#x4EE5;&#x8F93;&#x51FA;&#x4EFB;&#x610F;&#x95EE;&#x9898;&#x548C;&#x7B54;&#x6848;</h4>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x5BF9;&#x5E94;&#x503C;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">action</td>
<td style="text-align:center">&#x63A5;&#x6536;&#x5730;&#x5740;&#xFF0C;&#x901A;&#x5E38;&#x662F;&#x5E94;&#x8BE5;&#x662F;&#x4E00;&#x4E2A;&#x540E;&#x53F0;&#x7684;&#x7A0B;&#x5E8F;&#x5904;&#x7406;&#x5730;&#x5740;&#xFF0C;php&#x3001;jsp&#x3001;.net&#x3001;nodejs&#xFF0C;&#x5982;&#x679C;&#x4E0D;&#x586B;&#xFF0C;&#x5219;&#x9ED8;&#x8BA4;&#x63D0;&#x4EA4;&#x672C;&#x9875;&#x9762;&#x3002;</td>
</tr>
<tr>
<td style="text-align:center">name</td>
<td style="text-align:center">&#x8868;&#x5355;&#x7684;&#x540D;&#x5B57;&#xFF0C;&#x4E3B;&#x8981;&#x7528;&#x533A;&#x5206;&#x8868;&#x5355;</td>
</tr>
<tr>
<td style="text-align:center">target</td>
<td style="text-align:center">&#x8868;&#x5355;&#x63D0;&#x4EA4;&#x7684;&#x9875;&#x9762;&#x7684;&#x6253;&#x5F00;&#x65B9;&#x5F0F;&#xFF0C;_self,_blank&#x6216;&#x8005;&#x662F;&#x5177;&#x4F53;&#x7684;&#x7A97;&#x4F53;&#x540D;&#x5B57;&#xFF08;&#x4F8B;&#x5982;iframe&#x7684;&#x540D;&#x5B57;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">method</td>
<td style="text-align:center">get<ba>&#x8F7B;&#x91CF;&#x7684;&#x8BF7;&#x6C42;&#x65B9;&#x5F0F;&#xFF0C;&#x4FE1;&#x606F;&#x91CF;&#x6BD4;&#x8F83;&#x5C0F;&#xFF0C;&#x5B89;&#x5168;&#x8981;&#x6C42;&#x4E0D;&#x9AD8;(&#x6D4F;&#x89C8;&#x4EA7;&#x54C1;&#x9875;&#x9762;&#xFF0C;&#x6587;&#x7AE0;&#x9875;&#x9762;&#xFF0C;&#x8BBF;&#x95EE;&#x4E00;&#x4E9B;&#x54A8;&#x8BE2;&#x9875;&#x9762;),&#x4FE1;&#x606F;&#x662F;&#x5B58;&#x5728;url&#x5730;&#x5740;&#x680F;&#x540E;&#x9762;&#xFF0C;&#x4F8B;&#x5982;login.php?username=gdgf&amp;pw=eeri&#x8FD9;&#x6837;&#x7684;&#x5F62;&#x5F0F;&#x6765;&#x4F20;&#x8F93;&#x4FE1;&#x606F;<br>post<br>&#x8F83;&#x91CD;&#x7684;&#x8BF7;&#x6C42;&#x65B9;&#x5F0F;&#xFF0C;&#x4FE1;&#x606F;&#x91CF;&#x6BD4;&#x8F83;&#x5927;&#xFF0C;&#x5B89;&#x5168;&#x8981;&#x6C42;&#x76F8;&#x5BF9;&#x8F83;&#x9AD8;(&#x4E0A;&#x4F20;&#x6587;&#x4EF6;&#xFF0C;&#x4E0A;&#x4F20;&#x6587;&#x7AE0;&#xFF0C;&#x7F51;&#x7AD9;&#x767B;&#x9646;&#xFF0C;&#x9A8C;&#x8BC1;&#x7B49;)</ba></td>
</tr>
</tbody>
</table>
<h3 id="&#x4F7F;&#x7528;method&#x7684;&#x597D;&#x5904;">&#x4F7F;&#x7528;method&#x7684;&#x597D;&#x5904;</h3>
<ul>
<li>&#x524D;&#x540E;&#x5206;&#x79BB;&#xFF08;&#x66F4;&#x5FEB;&#xFF0C;&#x66F4;&#x597D;&#xFF0C;&#x66F4;&#x9AD8;&#xFF0C;&#x4E0D;&#x80CC;&#x9505;&#xFF09;</li>
<li>&#x524D;&#x7AEF;&#xFF1A;&#x7248;&#x9762;&#x5236;&#x4F5C;&#x3001;&#x4EA4;&#x4E92;&#x5236;&#x4F5C;&#x3001;&#x6570;&#x636E;&#x6216;&#x8BB8;&#x3001;&#x6570;&#x636E;&#x63D0;&#x4EA4;                   </li>
<li><p>&#x540E;&#x53F0;&#xFF1A;&#x63D0;&#x4F9B;API</p>
</li>
<li><p>Example</p>
<pre><code>&lt;!--&lt;iframe src=&quot;&quot; name=&quot;ifr&quot;&gt;&lt;/iframe&gt;--&gt;
&lt;form action=&quot;login.php&quot; name=&quot;login&quot; method=&quot;post&quot;&gt;
  &#x7528;&#x6237;&#x540D;:&lt;input type=&quot;text&quot; name=&quot;username&quot;/&gt;&lt;br /&gt;
  &#x5BC6;&#x7801;:&lt;input type=&quot;password&quot; name=&quot;pw&quot;/&gt;&lt;br /&gt;
  &lt;input type=&quot;submit&quot;/&gt;
&lt;/form&gt;
</code></pre></li>
</ul>
<h2 id="&#x641C;&#x7D22;&#x6846;">&#x641C;&#x7D22;&#x6846;</h2>
<p><strong>search&#xFF1A;</strong>&#x641C;&#x7D22;&#x6846;  &#x4E3B;&#x8981;&#x589E;&#x52A0;&#x4E86;&#x4E00;&#x4E2A;&#x5FEB;&#x901F;&#x6E05;&#x9664;&#x5185;&#x5BB9;&#x7684;&#x529F;&#x80FD;
&#x517C;&#x5BB9;&#x6027;&#xFF1A;IE10+&#x4EE5;&#x4E0A;&#x6D4F;&#x89C8;&#x5668;</p>
<h2 id="&#x7535;&#x8BDD;&#x53F7;&#x7801;&#x8F93;&#x5165;&#x6846;">&#x7535;&#x8BDD;&#x53F7;&#x7801;&#x8F93;&#x5165;&#x6846;</h2>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;&#x7C7B;&#x578B;</th>
<th style="text-align:center">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">tel</td>
<td style="text-align:center">&#x4E3B;&#x8981;&#x901A;&#x8FC7;&#x642D;&#x914D;pattern&#x5C5E;&#x6027;&#x6765;&#x68C0;&#x9A8C;&#x6B63;&#x786E;&#x7684;&#x7535;&#x8BDD;&#x53F7;&#x7801;</td>
</tr>
<tr>
<td style="text-align:center">pattern</td>
<td style="text-align:center">&#x68C0;&#x9A8C;&#x89C4;&#x5219;&#xFF0C;&#x901A;&#x5E38;&#x7528;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x6765;&#x8868;&#x793A;<br>&#x6C55;&#x5934;&#x53F7;&#x7801;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;  &quot;8[0-9]{8}&quot;</td>
</tr>
<tr>
<td style="text-align:center">required</td>
<td style="text-align:center">&#x5FC5;&#x586B;</td>
</tr>
</tbody>
</table>
<p><strong>&#x517C;&#x5BB9;&#x6027;&#xFF1A;IE10+&#x4EE5;&#x4E0A;&#x6D4F;&#x89C8;&#x5668;&#x652F;&#x6301;</strong></p>
<ul>
<li>Example<pre><code>&lt;input type=&quot;tel&quot; pattern=&quot;1[0-9]{10}&quot; required/&gt;
</code></pre></li>
</ul>
<h2 id="&#x989C;&#x8272;&#x8272;&#x677F;&#xFF08;&#x62FE;&#x8272;&#x5668;&#xFF09;">&#x989C;&#x8272;&#x8272;&#x677F;&#xFF08;&#x62FE;&#x8272;&#x5668;&#xFF09;</h2>
<pre><code>&lt;input type=&quot;color&quot; name=&quot;color&quot; /&gt;
</code></pre><h2 id="&#x65E5;&#x671F;">&#x65E5;&#x671F;</h2>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">datetime-local</td>
<td style="text-align:center">&#x53EF;&#x9009;&#x5E74;&#x6708;&#x65E5;&#x5341;&#x5206;</td>
</tr>
<tr>
<td style="text-align:center">date</td>
<td style="text-align:center">&#x53EF;&#x9009;&#x5E74;&#x6708;&#x65E5;</td>
</tr>
<tr>
<td style="text-align:center">month</td>
<td style="text-align:center">&#x53EF;&#x9009;&#x5E74;&#x6708;</td>
</tr>
<tr>
<td style="text-align:center">week</td>
<td style="text-align:center">&#x53EF;&#x9009;&#x5E74;&#x6708;&#x65E5;&#x548C;&#x5468;&#x51E0;&#xFF08;&#x79FB;&#x52A8;&#x7AEF;&#x51E0;&#x4E4E;&#x4E0D;&#x517C;&#x5BB9;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:center">time</td>
<td style="text-align:center">&#x53EF;&#x9009;&#x65F6;&#x5206;</td>
</tr>
</tbody>
</table>
<p><strong>&#x517C;&#x5BB9;&#x6027;&#xFF1A;PC&#x7AEF;&#x9664;&#x4E86;IE&#x548C;Safari&#x4E0D;&#x652F;&#x6301;</strong>   </p>
<ul>
<li>Example<pre><code>&lt;input type=&quot;datetime-local&quot; name=&quot;datetime-local&quot;/&gt;&lt;br /&gt;
&lt;input type=&quot;date&quot; name=&quot;name&quot;/&gt;&lt;br /&gt;
&lt;input type=&quot;month&quot; name=&quot;month&quot;/&gt;&lt;br /&gt;
&lt;input type=&quot;week&quot; name=&quot;week&quot;/&gt;&lt;br /&gt;
&lt;input type=&quot;time&quot; name=&quot;time&quot;/&gt;&lt;br /&gt;
</code></pre></li>
</ul>
<h2 id="&#x6570;&#x5B57;&#x8303;&#x56F4;&#x9009;&#x62E9;&#x5668;">&#x6570;&#x5B57;&#x8303;&#x56F4;&#x9009;&#x62E9;&#x5668;</h2>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">range</td>
<td style="text-align:center">&#x6570;&#x5B57;&#x8303;&#x56F4;&#x9009;&#x62E9;&#x5668;</td>
</tr>
<tr>
<td style="text-align:center">min</td>
<td style="text-align:center">&#x6700;&#x5C0F;&#x503C;</td>
</tr>
<tr>
<td style="text-align:center">max</td>
<td style="text-align:center">&#x6700;&#x5927;&#x503C;</td>
</tr>
<tr>
<td style="text-align:center">value</td>
<td style="text-align:center">&#x5F53;&#x524D;&#x9ED8;&#x8BA4;&#x503C;</td>
</tr>
<tr>
<td style="text-align:center">step</td>
<td style="text-align:center">&#x6BCF;&#x6B21;&#x6539;&#x52A8;&#x7684;&#x6B65;&#x4F10;&#x5927;&#x5C0F;</td>
</tr>
</tbody>
</table>
<p><strong>&#x517C;&#x5BB9;&#x6027;&#xFF1A;IE10+&#x517C;&#x5BB9;</strong></p>
<pre><code>&lt;input type=&quot;range&quot; min=&quot;0&quot; max=&quot;100&quot; step=&quot;10&quot; value=&quot;0&quot;/&gt;
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/html/weibo-component.html" class="navigation navigation-prev " aria-label="Previous page: weibo组件"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/html/register.html" class="navigation navigation-next " aria-label="Next page: register"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
